@import "module";

//中间商品内容
.container{
    .base_title{//通用标题
        font-weight: bold;
        text-indent: .5em;
        height: 50px;
        line-height: 50px;
        .iconfont{
            font-size: 24px;
            margin-left: 5px;
            color: #41c76d;
            cursor: pointer;
            transition: all .3s;
            font-weight: normal;
            -webkit-transition: all .3s;
            -moz-transition: all .3s;
            -ms-transition: all .3s;
            -o-transition: all .3s;
            &:hover{
                color: #f5c228;
            }
        }
    }
    .base_up{//通用移动上移特效
        
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        -ms-border-radius: 5px;
        -o-border-radius: 5px;
        &:hover{
            box-shadow: 0 15px 30px rgba(0,0,0,.2);
            transform: translateY(-2px);
            -webkit-transform: translateY(-2px);
            -moz-transform: translateY(-2px);
            -ms-transform: translateY(-2px);
            -o-transform: translateY(-2px);
            transition: all.2s;
            -webkit-transition: all.2s ease-out;
            -moz-transition: all.2s ease-out;
            -ms-transition: all.2s ease-out;
            -o-transition: all.2s ease-out;
        }
    }
    .base_img{
        margin-top: 10px;
        cursor: pointer;
        img{
            width: 100%;
        }
    }
    .activity{
        ul{
            li{
                float: left;
                margin-left: 20px;  
                &:first-of-type{
                    margin-left: 0;
                }
                
                img{
                    width: 285px;
                    border-radius: 5px;
                    -webkit-border-radius: 5px;
                    -moz-border-radius: 5px;
                    -ms-border-radius: 5px;
                    -o-border-radius: 5px;
                }
            }
        }

    }
    .spike{
        .base_title{
            .iconfont{
                color: #f5c228;
                &:hover{
                    color: #41c76d;
                }
            }
        }
        &_left{
            width: 240px;
            float: left;

        }
        &_right{
            width: 960px;
            float: left;
            .spike_item{
                float: left;
                background-color: #fff;
                width: 460px;
                height: 180px;
                margin-left: 20px;
                margin-bottom: 20px;
                img{
                    width: 160px;
                    margin: 5px;
                    float: left;
                }
                &_txt{
                    float: left;
                    h3{
                        width: 260px;
                        white-space: pre-wrap;
                        height: 50px;
                        overflow: hidden;
                        margin-top: 25px;
                    }
                    h4{
                        margin-top: 15px;
                        color: red;
                        font-family: fantasy;
                        font-size: 20px;
                        margin-bottom: 10px;
                        del{
                            font-size: 14px;
                            margin: 0 5px;
                            font-weight: normal;
                            color: #9e9e9e;
                            font-family: serif,sans-serif;
                        }
                    }
                    button{
                        cursor: pointer;
                        width: 135px;
                        height: 35px;
                        font-size: 20px;
                        border-radius: 5px;
                        -webkit-border-radius: 3px;
                        -moz-border-radius: 3px;
                        -ms-border-radius: 3px;
                        -o-border-radius: 3px;
                        color: white;
                        background-color: #41cc6e;
                        transition: all .3s;
                        -webkit-transition: all .3s;
                        -moz-transition: all .3s;
                        -ms-transition: all .3s;
                        -o-transition: all .3s;
                        &:hover{
                            background-color: #f5c228;
                        }
                    }
                }
            }
        }
    }
    .common_list{
        .base_up{
            float: left;
            width: 285px;
            height: 460px;
            background-color: #fff;
            margin-left: 20px;
            margin-bottom: 20px;
            text-align: center;
            overflow: hidden; //隐藏掉图片的圆角
            .img_outer{
                margin-top: 50px;
                width: 240px;
                height: 240px;
                display: inline-block;//为了居中
                overflow: hidden;
                img{
                    width: 240px;
                    transition: all .3s;
                    -webkit-transition: all .3s;
                    -moz-transition: all .3s;
                    -ms-transition: all .3s;
                    -o-transition: all .3s;
                    &:hover{
                        transform: scale(1.02);
                        -webkit-transform: scale(1.02);
                        -moz-transform: scale(1.02);
                        -ms-transform: scale(1.02);
                        -o-transform: scale(1.02);
                    }
                }
            }
            .good_dsc{
                width: 260px;
                display: inline-block;
                overflow: hidden;
                text-align: center;
                h2{
                    font-size: 20px;
                    margin-top: 30px;
                }
                h3{
                    font-size: 14px;
                    color: #666;
                    margin: 10px 0 20px;
                }
                p{
                    color: red;
                    font-size: 20px;
                    font-family: fantasy;
                    del{
                        font-size: 14px;
                        font-family: serif;
                        color: #666;
                        margin: 0 5px;
                    }
                }
            }
            &:first-of-type{
                width: 590px;
                img{
                    width: 590px;
                    height: 460px;
                    // margin: 0;
                }
            }
            &:nth-of-type(1),&:nth-of-type(4){
                 margin-left: 0;
            }
            
        }
        
    }
    .more_goods{
        .base_up{
            float: left;
            width: 224px;
            height: 360px;
            background-color: #fff;
            margin-left: 20px;
            margin-bottom: 20px;
            text-align: center;
            overflow: hidden; //隐藏掉图片的圆角
            .img_outer{
                width: 200px;
                height: 200px;
                display: inline-block;//为了居中
                overflow: hidden;
                a{
                    display: block;
                    height: 100%;
                    img{
                        width: 200px;
                        transition: all .3s;
                        -webkit-transition: all .3s;
                        -moz-transition: all .3s;
                        -ms-transition: all .3s;
                        -o-transition: all .3s;
                        &:hover{
                            transform: scale(1.02);
                            -webkit-transform: scale(1.02);
                            -moz-transform: scale(1.02);
                            -ms-transform: scale(1.02);
                            -o-transform: scale(1.02);
                        }
                    }
                }
               
            }
            .good_dsc{
                width: 190px;
                display: inline-block;
                overflow: hidden;
                text-align: center;
                cursor: pointer;
                h2{
                    font-size: 16px;
                    font-weight: bold;
                    margin-top: 10px;
                    width: 200px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
                h3{
                    font-size: 12px;
                    color: #666;
                    margin: 10px 0;
                    width: 200px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
                p{
                    color: red;
                    font-size: 20px;
                    font-family: fantasy;
                    margin-bottom: 10px;
                    del{
                        font-size: 14px;
                        font-family: serif;
                        color: #666;
                        margin: 0 5px;
                    }
                }
                button{
                    cursor: grab;
                        width: 135px;
                        height: 35px;
                        font-size: 16px;
                        border-radius: 5px;
                        -webkit-border-radius: 3px;
                        -moz-border-radius: 3px;
                        -ms-border-radius: 3px;
                        -o-border-radius: 3px;
                        color: white;
                        background-color: #41cc6e;
                }
            }
            &:nth-of-type(5n+1){ //每排5个，每排第一个去掉左外边距
                margin-left: 0;
            }
        }
        .over{
            text-align: center;
            color: #666;
            span{
                margin: 0 20px;
            }
            margin-bottom: 20px;
        }
    }
}
//左侧导航
.left_nav{
    position: fixed;
    display: none;
    left: 200px;
    top: 210px;
    width: 80px;
    font-size: 12px;
    z-index: 10;
    text-align: center;
    li{
        background: #fff;
        width: 80px;
        transition: .3s;
        -webkit-transition: .3s;
        -moz-transition: .3s;
        -ms-transition: .3s;
        -o-transition: .3s;
        a{
            color: #41cc6e;
            display: inline-block;
            width: 80px;
            padding: 10px 0;
            text-decoration: none;
            border-bottom: 1px solid #e9e9e9;
            transition: all .4s;
        }
        &:hover{
            background-color: #f6f6f6;
            a{
                color: #f4c22e;
                font-weight: bold;
                text-indent: .2em;
            }
        }
    }
    .active{
        background-color: #f6f6f6;
        a{
            color: #f4c22e;
            font-weight: bold;
            text-indent: .2em;
        }
    }
}
.swiper-container{   //swiper轮播图
    --swiper-pagination-color: #f4c332;/* 两种都可以 */
    .swiper-pagination-bullet{
        width: 14px;
        height: 14px;
        margin: 0 8px;
        border: 2px solid #ddd;
    }
}
//分类和轮播图
.banner{
    width: 100%;
    height: 530px;
    border-top: 2px solid #f4c332;
    border-bottom: 2px solid #41c76d;
    position: relative;
    .catagory{
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        &_inner{
            position: relative;
            height: 100%;
            background-color: red;
            .catalist{
                width: 220px;
                height: 100%;
                position: absolute;
                left: 0;
                top: 0;
                z-index: 3;
                color: white;
                cursor: pointer;
                &_all{
                    height: 66px;
                    text-align: center;
                    line-height: 66px;
                    background-color: #f5c228;
                    transition: all .2s;
                    -webkit-transition: all .2s;
                    -moz-transition: all .2s;
                    -ms-transition: all .2s;
                    -o-transition: all .2s;
                    .iconfont{
                        font-weight: bold;
                        padding: 0 12px;
                        margin-left: -12px;
                    }
                    a{
                        display: block;
                        width: 100%;
                    }
                }
                &_item{
                    height: 58px;
                    text-align: center;
                    line-height: 58px;
                    transition: all .2s;
                    -webkit-transition: all .2s;
                    -moz-transition: all .2s;
                    -ms-transition: all .2s;
                    -o-transition: all .2s;
                    background-color: rgba(50 ,50, 50,.45);
                    .item_content{
                        position: absolute;
                        overflow: hidden;
                        display: none;
                        top: 0;
                        left: 220px;
                        width: 980px;
                        height: 100%;
                        background-color: rgba(255 ,255, 255,.95);
                    }
                    &:hover{
                        background-color: rgba(47, 163,85,.7);
                        text-indent: .1em;
                        .item_content{
                            z-index: 12;
                            display: block;
                            // box-shadow: 0 12px 25px rgba(0,0,0,.2);
                            .catagood{
                                float: left;
                                height: 80px;
                                line-height: 80px;
                                text-align: left;
                                margin: 0 8px;
                                width: 180px;
                                text-indent: 0; //清除父级catalist的hover里的text-indent
                                img{
                                    width: 60px;
                                    height: 60px;
                                }
                                span{
                                    display: inline-block;
                                    width: 90px;
                                    vertical-align: middle;
                                    overflow: hidden;
                                    white-space: nowrap;
                                    text-overflow: ellipsis;
                                    font-size: 14px;
                                    color: #333;
                                    &:hover{
                                        color: #249e4c;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            .swiper-button-prev{
                left: 225px;
            }
            .swiper-button-prev,.swiper-button-next{
                z-index: 1;
                outline: none;
                color: white;
                opacity: .7;
                &:hover{
                    opacity: 1;
                }
            }
        }
    }
}